// 全局 getters
const getters = {
  token: state => state.user.profile.token,
  nickname: state => state.user.profile.nickname,
  account: state => state.user.profile.account,
  avatar: state => state.user.profile.avatar
}
export default getters
// 使用的话就是，  this.$store.getters.token
